package sctu.edu.java.year2016.team01.chenhong.day20160521.chapter4_1;

import java.util.Scanner;

/**
 * Created by Administrator on 2016/5/21.
 * 判断奇偶数
 */
public class Odevity {
    public static void main(String[] args) {


        System.out.println("请输入一个整数：");
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();



        if (num % 2 == 0)
            System.out.println(num + "为偶数。");
        else
            System.out.println(num + "为奇数。");

    }

}
